<style type="text/css">
.page h2.border{
	border-bottom: 1px solid #262B30;
	border-top: 1px solid #262B30;
	padding: 10px 0;
	font-size: 19px;
	margin-bottom:8px;
	color: #fff;
}
</style>

<?php
$CI =& get_instance();
$CI->load->database();
$CI->load->library("front/header_lib");
$query_pages = $CI->db->get_where('bur_staticpages',array('staticpage_link'=>'design_directory'));
foreach($query_pages->result() as $row_vals)
{
    $title = $row_vals->staticpage_title;
	$metakey_page = $row_vals->staticpage_metakey;
    $metadesc_page = $row_vals->staticpage_metadesc;
}
$CI->header_lib->display_header_element(array("script"=>array("jquery-1.4.2"),"page_title"=>$title,"metakey_page"=>$metakey_page,"metadesc_page"=>$metadesc_page));

$CI->header_lib->display_header();

$data['products'] = 1 ;
$CI->load->model('Directory_company_model');
//echo $CI->session_user_id;
$count = $CI->Directory_company_model->get_view_count($CI->session_user_id);

$data['view_count'] = $count['view_count'];

$data['lead_count'] = $count['lead_count'];

$listing_active = $CI->Directory_company_model->get_listing_status($CI->session_user_id);
?>
<?php //$this->load->view(TEMPLATE_NAME.'/front/header'); ?>
<?php $left_class['products'] = 1; ?>
<?php //$this->load->view(TEMPLATE_NAME.'/front/directory_guest/panel_left',$left_class); ?>
<div id="container_wrapper">

    <div class="left_part">
    <?php echo $CI->header_lib->display_panel_left($data);?>


    </div>
    <div class="right_part">
      <?php
		if ($productType == 'products'){
			$productType__ = '';
		}else{
			$productType__ = $productType;
		}
        if(!empty($services_list)){
        	echo form_open('directory/panel/products/'.$productType__  );
            ?>
              <h2 style="border-bottom: 1px solid #262B30;
	border-top: 1px solid #262B30;
	padding: 10px 0;
	font-size: 19px;
	margin-bottom:8px;
	color: #fff;" >services that you offer</h2>


       <?php if(!empty($notification)){ ?>
        <div style="background-color:#CF118C; color:#FFF; font-size:14px; margin-bottom:5px; padding:5px;">
        <?php echo $notification ?>
        </div>

          <div class="height10"></div>
        <h3 class="head03">Gender</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
            foreach($services_list as $key=>$value){
           if($value['services']=='Gender')
          { ?>
             <li>
              <div class="div014">
                <input type="radio" id="services<?php echo $value['id'];  ?>"name="services[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?>
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }}
        ?>
          </ul></div>
          <div class="height10"></div>
        <h3 class="head03">Category</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
          foreach($services_list as $key=>$value){
           if($value['services']=='Category')
          {
           ?>  <li>
              <div class="div014">
                <input type="checkbox" name="services[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?>
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }}?>
          </ul></div>
          <div class="height10"></div>
        <h3 class="head03">Hair Color</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
          foreach($services_list as $key=>$value){
           if($value['services']=='Hair Color')
          {
           ?>  <li>
              <div class="div014">
                <input type="checkbox" name="services[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?>
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
         <?php }}?>
          </ul></div>
          <div class="height10"></div>
        <h3 class="head03">Ethinity</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
           foreach($services_list as $key=>$value){
           if($value['services']=='Ethnicity')
          { ?>
             <li>
              <div class="div014">
                <input type="checkbox" name="services[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?>
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }

        }?>

          </ul>
        </div>
        <?php } ?>
        <div class="clear">&nbsp;</div>
      <div class="bright">
			<?php
            $form_button = array(
              'type'=>'submit',
              'name'=>'submit',
              'value'=>'submit',
              'content'=>'Submit',
            );
            echo form_button($form_button) ?>


            </div>
      </div>



    </div>
    <div class="clear"></div>


<?php
//$CI->load->library("front/footer_lib");
//$CI->footer_lib->display_footer();
//$CI->footer_lib->display_footer_element();
